﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class Sprint
    {
        public Sprint()
        {

        }

        public Sprint(int sprintid, string titel, string description, string status, int estimatedworkload, DateTime begindate, DateTime estimatedenddate, DateTime realenddate,int productid, int teamid )
        {
            this.sprintId = sprintid;
            this.titel = titel;
            this.description = description;
            this.status = status;
            this.estimatedWorkload = estimatedworkload;
            this.beginDate = begindate;
            this.estimatedEndDate = estimatedenddate;
            this.realEndDate = realenddate;
            this.productID = productid;
            this.teamId = teamid;
        }
        //constructor overload with only sprintid and titel
        public Sprint(int sprintid, string titel)
        {
            this.sprintId = sprintid;
            this.titel = titel;

        }

        private List<UserStory> userstorylist;

        public List<UserStory> Userstorylist
        {
            get { return userstorylist; }
            set { userstorylist = value; }
        }

        private int sprintId;

        public int SprintId
        {
            get { return sprintId; }
            set { sprintId = value; }
        }

        private string titel;

        public string Titel
        {
            get { return titel; }
            set { titel = value; }
        }

        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private string status;

        public string Status
        {
            get { return status; }
            set { status = value; }
        }

        private int estimatedWorkload;

        public int EstimatedWorkload
        {
            get { return estimatedWorkload; }
            set { estimatedWorkload = value; }
        }

        private DateTime beginDate;

        public DateTime BeginDate
        {
            get { return beginDate; }
            set { beginDate = value; }
        }

        private DateTime estimatedEndDate;

        public DateTime EstimatedEndDate
        {
            get { return estimatedEndDate; }
            set { estimatedEndDate = value; }
        }

        private DateTime realEndDate;

        public DateTime RealEndDate
        {
            get { return realEndDate; }
            set { realEndDate = value; }
        }

        private int productID;

        public int ProductID
        {
            get { return productID; }
            set { productID = value; }
        }

        private int teamId;

            public int TeamId
            {
              get { return teamId; }
              set { teamId = value; }
            }
            public override string ToString()
            {
                return this.titel;
            }

    }
}
